<template>
 <n-card title="龙虎榜数据">

  <div class="mb10" v-for="item in resfr">
    <p>上榜时间：{{item.tradeTime}}</p>
    <secondaryForm :data="item"></secondaryForm>
  </div>
</n-card>
</template>
 <script lang='ts' setup>
 import { ref } from "vue";
 import {dxget} from "../../util/index"
 import secondaryForm from "../winnersList/secondaryForm.vue";
 const props = defineProps({
  code: {
    type: String,
  },
});
const resfr = ref([])
const initsd = async()=>{
console.log('77777');
  const {data}:any = await dxget('gupiao/getMarketStatisticsData',{
    scode:props.code,
    page:1,
    rows:15
  })
  resfr.value = data.marketList
}
 initsd()


</script>
 <style scoped>
</style>